package com.rt.java.time;

import java.time.LocalDate;

public class LocalDateDemo {
    public static void main(String[] args) {
        LocalDate now = LocalDate.now();
        now.plusYears(1); // 加一年
        now.minusMonths(1); // 减一个月
        now.withYear(2020); // 修改月
        now.isBefore(now.plusDays(1)); // true
    }
}
